using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;

namespace AAM.SQL
{
    public class Connection
    {

        private DbConnection connection;

        public Connection(DbConnection connection)
        {
            this.connection = connection;
        }

        public DbConnection DbConnection { get { return connection; } }

        public Command CreateCommand() { return new Command(connection.CreateCommand()); }

        public Command CreateCommand(string sql)
        {
            Command command = CreateCommand();
            command.CommandText = sql;
            return command;
        }

    }
}
